﻿package view.mainUI.mainBottom.controller
{
    import com.core.*;

    public class MainShortcutControl extends Control
    {

        public function MainShortcutControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "fastlist")
            {
                switch(param2.property)
                {
                    case "dragComplate":
                    {
                        this.target.dragSkillComplate(param2.newvalue.point, param2.newvalue.data);
                        break;
                    }
                    case "cd":
                    {
                        if (param2.newvalue is Array)
                        {
                            this.target.startCD(param2.newvalue[0], param2.newvalue[1]);
                        }
                        else
                        {
                            this.target.startCD(param2.newvalue);
                        }
                        break;
                    }
                    case "updatetool":
                    {
                        this.target.updateItem(param2.newvalue);
                        break;
                    }
                    case "swapset":
                    {
                        this.target.swapSkill(param2.newvalue);
                        break;
                    }
                    case "cancelskill":
                    {
                        this.target.cancelSkill(param2.newvalue);
                        break;
                    }
                    case "changesetskill":
                    {
                        this.target.changeSetSkill(param2.newvalue.type, param2.newvalue.skillid);
                        break;
                    }
                    case "refreshSkills":
                    {
                        this.target.refreshSkills();
                        break;
                    }
                    case "updateAutoSkillMovie":
                    {
                        this.target.updateAutoSkillMovie();
                        break;
                    }
                    case "setskill":
                    {
                        this.target.setSkill(param2.newvalue);
                        break;
                    }
                    case "delayShowSkill":
                    {
                        this.target.showDelay(param2.newvalue);
                        break;
                    }
                    case "initBagItems":
                    {
                        this.target.initBagItems();
                        break;
                    }
                    default:
                    {
                        break;
                    }
                }
            }
            return;
        }// end function

    }
}
